package com.guardchina.framework.util.exception.login;

import com.guardchina.framework.util.exception.BusinessException;
import com.guardchina.framework.util.constant.ResultStatus;

/**
 * 描述：token过期异常
 *
 * @author lwb
 * @date 2019/3/19 11:22
 */
public class TokenExpException extends BusinessException {

    private TokenExpException(String message) {
        super(ResultStatus.TOKEN_EXP_EXCEPTION, message);
    }

    public static TokenExpException error(String message) {
        return new TokenExpException(message);
    }

    public static TokenExpException error() {
        return new TokenExpException("登录已过期，请重新登录");
    }
}
